﻿using PetaPoco;
using System;
using System.Collections.Generic;

namespace Qy.Models
{
    [TableName("qy_log_login")]
    [PrimaryKey("Id", AutoIncrement = true)]
    public class LogLogin
    {
        public int Id { get; set; }
        public int UserId { get; set; }
        public string Ip { get; set; }
        public DateTime Time { get; set; }

    }

    public class ViewLogLogin
    {
        public int Id { get; set; }
        public int UserId { get; set; }
        public string Ip { get; set; }
        public DateTime Time { get; set; }
        public string Username { get; set; }
        public string Nickname { get; set; }
        public string DeptName { get; set; }
    }
}